//
//  ContactCell.m
//  20240823
//
//  Created by 张伟 on 2024/8/25.
//

#import "ContactCell.h"

@interface ContactCell ()
@property (weak, nonatomic) IBOutlet UILabel *name;
@property (weak, nonatomic) IBOutlet UIImageView *icon;

@end

@implementation ContactCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setModel:(LJPerson *)model {
    _model = model;
    _name.text = model.fullName;
    _icon.image = model.image ? model.image : [UIImage imageNamed:@"默认头像"];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
